/*********************************************************************
KeyedItem class (abstract)

This is an abstract class that can be extended to aid in the comparison
of complex datatypes.
*********************************************************************/

// Original code found in "Data Abstraction & Problem Soving with Java"
// 2005., Carrano, F., Prichard, J.;


public abstract class KeyedItem<KT extends Comparable<?super KT>>
{
//private:
    private KT searchKey;

//public:
    //*************************************************************
    /** Creates a new instance of KeyedItem */
    public KeyedItem(KT key)
    {
        searchKey = key;
    } // end constructor

    //*************************************************************
    /** Returns searchKey value */
    public KT getKey()
    {
        return searchKey;
    } // end getKey
} // end KeyedItem

